package cn.gson.springboot.model.mapper;

import cn.gson.springboot.model.pojos.Approval;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component("appMapper")
public interface ApprovalMapper {
    public List<Approval> selectAllApproval(Integer type,Integer num,Integer empId,String appTheme);

    public Approval selectApprovalByQuoId(Integer quoId);

    public Approval selectApprovalByBusId(Integer businessId);

    public Approval selectApprovalByPurId(Integer purId);

    public Approval selectApprovalByConId(Integer conId);

    public Approval selectApprovalByPayPlanId(Integer payId);

    public Approval selectApprovalByAppId(Integer appId);

    public Approval selectAppByAppIdAndClassify(@Param("app") Approval app);

    public List<Approval> selectApprovalByStatus(Integer appStatus);

    public List<Approval> selectApprovalByTheme(String appTheme);

}
